package com.example.workrecord.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@Data
@Table(name="my_guest_alumni")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
@ApiModel(description = "展览嘉宾子表")
@EntityListeners(AuditingEntityListener.class)
public class Alumni implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue()
    @ApiModelProperty(value = "主键")
    private Long id;
    private Long guestId;

    private String alumniUrl;
    private String alumniName;
    private String alumniAge;
    private String departments;
    private String job;
    private String vnote1;
    private String vnote2;
    private String vnote3;
    private String createUser;

    /**
     * 创建时间
     */
    @CreatedDate
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 修改时间
     */
    @LastModifiedDate
    @Column(name = "modify_time")
    private Date modifyTime;



}
